cc.Class({
    extends: cc.Component,

    properties: {
        sidePrefab: {default: null,type: cc.Prefab}
    },

    onClick(){
        let side = cc.instantiate(this.sidePrefab);
        side.parent = this.node;
        side.active = true;
    }

});
